package com.bytedance.common.databinding;

import java.io.Serializable;

public class ObservableField<T> extends com.bytedance.common.databinding.a implements Serializable {
    private T mValue;
    static final long serialVersionUID = 1;

    public ObservableField() {

    }

    public ObservableField(T arg1) {
        this.mValue = arg1;
    }

    public T get() {
        return this.mValue;
    }

    public void set(T arg2) {
        if(arg2 != this.mValue) {
            this.mValue = arg2;
            this.notifyChange();
        }
    }
}

